package com.cloudshop.service.goods.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * User Feign.
 *
 * @author 宫新程
 * @since 2019/3/29 17:32
 */
@FeignClient(value = "cloudshop-service-user", fallbackFactory = UserFeignFallbackFactory.class)
public interface UserFeign {

  /** 测试. */
  @GetMapping("/user/demo")
  Object getUserName(@RequestParam("username") String username);
}
